package com.dmall.sharding.jdbc.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.session.SqlSession;
import javax.annotation.Resource;
import java.util.LinkedHashMap;
import java.util.List;

/**
 * @author xiao1.wang
 * @date 2020-06-13 14:13:56
 */
@Mapper
public interface PromotionMapper {
    /*@Resource
    private SqlSession sqlSession;*/

    /*public int executeUpdate(String sql) {
        return sqlSession.update(sql);
    }*/

    @Select("${value}")
    List<LinkedHashMap<String,Object>> executeSelect(String sql);

    @Select("${value}")
    Object executeUpdate(String sql);
}
